package com.tc.plus.entity.enums2;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @Auther: tianchao
 * @Date: 2020/12/3 16:37
 * @Description:
 */
public enum  User2SexEnum implements IEnum<Integer> {


    WOMAN(7,"女"),
    MAN(4,"男"),
    ;
    final int code;
    final String desc;
    User2SexEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }
    /**
     * 枚举数据库存储值
     */
    @Override
    public Integer getValue() {
        return code;
    }
}
